package com.longcai.service.clyjheadlines;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.longcai.bean.ApiResult;
import com.longcai.bean.PageHelper;
import com.longcai.entity.homepage.ClyjHeadlines;
import com.longcai.page.table.PageTableResponse;

/**
 * <p>
 * 平台头条 服务类
 * </p>
 *
 * @author M
 * @since 2019-03-27
 */
public interface ClyjHeadlinesService extends IService<ClyjHeadlines> {

    /**
     * 获取头条列表
     *
     * @param clyjHeadlines
     * @param pageHelper
     * @return
     */
  PageTableResponse headList(ClyjHeadlines clyjHeadlines, PageHelper pageHelper);
    //IPage headList(ClyjHeadlines clyjHeadlines, PageHelper pageHelper);

    /**
     * 根据名称查询头条信息
     *
     * @param title
     * @return
     */
    ClyjHeadlines getTitle(String title);

    /**
     * 新增
     *
     * @param clyjHeadlines
     * @return
     */
    ClyjHeadlines saveHead(ClyjHeadlines clyjHeadlines);

    /**
     * 根据id获取头条信息
     *
     * @param id
     * @return
     */
    ApiResult getById(String id);

    /**
     * 修改头条信息
     *
     * @param clyjHeadlines
     * @return
     */
    Integer updateHead(ClyjHeadlines clyjHeadlines);

    /**
     * 删除头条
     *
     * @param id
     */
    void deleteById(String id);
}
